package net.zjitc.mapper;

import net.zjitc.pojo.Cart;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/4/18 8:50
 */
@Repository
public interface CartMapper {
    List<Cart> findByuid(Integer id);

    int delete(Integer id);

    Cart findByCart_now(@Param(value = "pid") String pid,
                        @Param(value = "uid") Integer uid);

    int updateNumber(Cart cart);

    int add(Cart cart);
}
